home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / pc / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Reusable Classes_Code / User Interface / SetTimeCanvas1.1.2 / setTimeCanvas1.1.2 < prev    next >
Unknown  |  1999-09-19  |  9.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default
100% TrID PGN (Portable Gaming Notation) Compressed format default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 05 43 6c 61 73 73 0d 73 | 65 74 54 69 6d 65 43 61 |.Class.s|etTimeCa|
|00000010| 6e 76 61 73 0a a9 01 86 | 0c 84 09 07 00 0d 73 65 |nvas....|......se|
|00000020| 74 54 69 6d 65 43 61 6e | 76 61 73 a6 02 06 43 61 |tTimeCan|vas...Ca|
|00000030| 6e 76 61 73 00 13 17 61 | 72 72 6f 77 44 6f 77 6e |nvas...a|rrowDown|
|00000040| 28 31 29 20 61 73 20 70 | 69 63 74 75 72 65 00 15 |(1) as p|icture..|
|00000050| 61 72 72 6f 77 55 70 28 | 31 29 20 61 73 20 70 69 |arrowUp(|1) as pi|
|00000060| 63 74 75 72 65 00 10 63 | 48 6f 75 72 20 61 73 20 |cture..c|Hour as |
|00000070| 69 6e 74 65 67 65 72 00 | 12 63 4d 69 6e 75 74 65 |integer.|.cMinute|
|00000080| 20 61 73 20 69 6e 74 65 | 67 65 72 00 12 63 53 65 | as inte|ger..cSe|
|00000090| 63 6f 6e 64 20 61 73 20 | 69 6e 74 65 67 65 72 00 |cond as |integer.|
|000000a0| 0f 69 73 50 4d 20 61 73 | 20 62 6f 6f 6c 65 61 6e |.isPM as| boolean|
|000000b0| 00 0c 70 20 61 73 20 70 | 69 63 74 75 72 65 00 14 |..p as p|icture..|
|000000c0| 73 65 6c 65 63 74 69 6f | 6e 20 61 73 20 69 6e 74 |selectio|n as int|
|000000d0| 65 67 65 72 00 13 75 70 | 53 74 61 74 75 73 20 61 |eger..up|Status a|
|000000e0| 73 20 69 6e 74 65 67 65 | 72 00 15 64 6f 77 6e 53 |s intege|r..downS|
|000000f0| 74 61 74 75 73 20 61 73 | 20 69 6e 74 65 67 65 72 |tatus as| integer|
|00000100| 00 14 77 61 69 74 46 6f | 72 49 74 20 61 73 20 69 |..waitFo|rIt as i|
|00000110| 6e 74 65 67 65 72 00 11 | 73 68 6f 77 31 32 20 61 |nteger..|show12 a|
|00000120| 73 20 62 6f 6f 6c 65 61 | 6e 00 11 73 68 6f 77 32 |s boolea|n..show2|
|00000130| 34 20 61 73 20 62 6f 6f | 6c 65 61 6e 00 11 74 68 |4 as boo|lean..th|
|00000140| 65 46 6f 6e 74 20 61 73 | 20 73 74 72 69 6e 67 00 |eFont as| string.|
|00000150| 13 77 54 69 6d 65 28 32 | 29 20 61 73 20 69 6e 74 |.wTime(2|) as int|
|00000160| 65 67 65 72 00 0e 77 50 | 4d 20 61 73 20 69 6e 74 |eger..wP|M as int|
|00000170| 65 67 65 72 00 13 74 68 | 65 57 69 64 74 68 20 61 |eger..th|eWidth a|
|00000180| 73 20 69 6e 74 65 67 65 | 72 00 11 69 73 42 6f 6c |s intege|r..isBol|
|00000190| 64 20 61 73 20 62 6f 6f | 6c 65 61 6e 00 16 6d 6f |d as boo|lean..mo|
|000001a0| 75 73 65 49 73 44 6f 77 | 6e 20 61 73 20 62 6f 6f |useIsDow|n as boo|
|000001b0| 6c 65 61 6e 00 06 0a 63 | 68 61 6e 67 65 54 69 6d |lean...c|hangeTim|
|000001c0| 65 1f 75 70 20 61 73 20 | 62 6f 6f 6c 65 61 6e 2c |e.up as |boolean,|
|000001d0| 63 68 61 6e 67 65 20 61 | 73 20 62 6f 6f 6c 65 61 |change a|s boolea|
|000001e0| 6e 00 00 25 0e 25 0e 9f | 01 2f 53 75 62 20 63 68 |n..%.%..|./Sub ch|
|000001f0| 61 6e 67 65 54 69 6d 65 | 28 75 70 20 61 73 20 62 |angeTime|(up as b|
|00000200| 6f 6f 6c 65 61 6e 2c 63 | 68 61 6e 67 65 20 61 73 |oolean,c|hange as|
|00000210| 20 62 6f 6f 6c 65 61 6e | 29 17 64 69 6d 20 74 69 | boolean|).dim ti|
|00000220| 6d 65 50 69 63 74 20 61 | 73 20 70 69 63 74 75 72 |mePict a|s pictur|
|00000230| 65 17 64 69 6d 20 69 6e | 63 72 65 61 73 65 20 61 |e.dim in|crease a|
|00000240| 73 20 69 6e 74 65 67 65 | 72 11 64 69 6d 20 67 20 |s intege|r.dim g |
|00000250| 61 73 20 67 72 61 70 68 | 69 63 73 24 64 69 6d 20 |as graph|ics$dim |
|00000260| 74 69 6d 65 53 74 72 69 | 6e 67 2c 68 68 2c 6d 6d |timeStri|ng,hh,mm|
|00000270| 2c 73 73 2c 70 6d 20 61 | 73 20 73 74 72 69 6e 67 |,ss,pm a|s string|
|00000280| 00 00 0e 69 66 20 63 68 | 61 6e 67 65 20 74 68 65 |...if ch|ange the|
|00000290| 6e 0a 69 66 20 75 70 20 | 74 68 65 6e 0c 69 6e 63 |n.if up |then.inc|
|000002a0| 72 65 61 73 65 20 3d 20 | 31 04 65 6c 73 65 0d 69 |rease = |1.else.i|
|000002b0| 6e 63 72 65 61 73 65 20 | 3d 20 2d 31 06 65 6e 64 |ncrease |= -1.end|
|000002c0| 20 69 66 15 73 65 6c 65 | 63 74 20 63 61 73 65 20 | if.sele|ct case |
|000002d0| 73 65 6c 65 63 74 69 6f | 6e 06 63 61 73 65 20 31 |selectio|n.case 1|
|000002e0| 18 63 48 6f 75 72 20 3d | 20 63 48 6f 75 72 20 2b |.cHour =| cHour +|
|000002f0| 20 69 6e 63 72 65 61 73 | 65 2d 69 66 20 73 68 6f | increas|e-if sho|
|00000300| 77 32 34 20 61 6e 64 20 | 73 68 6f 77 31 32 20 74 |w24 and |show12 t|
|00000310| 68 65 6e 20 20 2f 2f 32 | 33 20 3c 2d 3e 20 32 34 |hen //2|3 <-> 24|
|00000320| 20 3c 2d 3e 20 30 31 13 | 69 66 20 63 48 6f 75 72 | <-> 01.|if cHour|
|00000330| 20 3e 3d 20 32 35 20 74 | 68 65 6e 09 63 48 6f 75 | >= 25 t|hen.cHou|
|00000340| 72 20 3d 20 31 16 65 6c | 73 65 69 66 20 63 48 6f |r = 1.el|seif cHo|
|00000350| 75 72 20 3c 3d 20 30 20 | 74 68 65 6e 0a 63 48 6f |ur <= 0 |then.cHo|
|00000360| 75 72 20 3d 20 32 34 06 | 65 6e 64 20 69 66 34 65 |ur = 24.|end if4e|
|00000370| 6c 73 65 69 66 20 73 68 | 6f 77 32 34 20 61 6e 64 |lseif sh|ow24 and|
|00000380| 20 6e 6f 74 20 73 68 6f | 77 31 32 20 74 68 65 6e | not sho|w12 then|
|00000390| 20 2f 2f 32 33 20 3c 2d | 3e 20 30 30 20 3c 2d 3e | //23 <-|> 00 <->|
|000003a0| 20 30 31 13 69 66 20 63 | 48 6f 75 72 20 3e 3d 20 | 01.if c|Hour >= |
|000003b0| 32 34 20 74 68 65 6e 09 | 63 48 6f 75 72 20 3d 20 |24 then.|cHour = |
|000003c0| 30 17 65 6c 73 65 69 66 | 20 63 48 6f 75 72 20 3c |0.elseif| cHour <|
|000003d0| 3d 20 2d 31 20 74 68 65 | 6e 0a 63 48 6f 75 72 20 |= -1 the|n.cHour |
|000003e0| 3d 20 32 33 06 65 6e 64 | 20 69 66 34 65 6c 73 65 |= 23.end| if4else|
|000003f0| 69 66 20 6e 6f 74 20 73 | 68 6f 77 32 34 20 61 6e |if not s|how24 an|
|00000400| 64 20 73 68 6f 77 31 32 | 20 74 68 65 6e 20 2f 2f |d show12| then //|
|00000410| 31 31 20 3c 2d 3e 20 31 | 32 20 3c 2d 3e 20 30 31 |11 <-> 1|2 <-> 01|
|00000420| 13 69 66 20 63 48 6f 75 | 72 20 3e 3d 20 31 33 20 |.if cHou|r >= 13 |
|00000430| 74 68 65 6e 09 63 48 6f | 75 72 20 3d 20 31 16 65 |then.cHo|ur = 1.e|
|00000440| 6c 73 65 69 66 20 63 48 | 6f 75 72 20 3c 3d 20 30 |lseif cH|our <= 0|
|00000450| 20 74 68 65 6e 0a 63 48 | 6f 75 72 20 3d 20 31 32 | then.cH|our = 12|
|00000460| 06 65 6e 64 20 69 66 38 | 65 6c 73 65 69 66 20 6e |.end if8|elseif n|
|00000470| 6f 74 20 73 68 6f 77 32 | 34 20 61 6e 64 20 6e 6f |ot show2|4 and no|
|00000480| 74 20 73 68 6f 77 31 32 | 20 74 68 65 6e 20 2f 2f |t show12| then //|
|00000490| 31 31 20 3c 2d 3e 20 30 | 30 20 3c 2d 3e 20 30 31 |11 <-> 0|0 <-> 01|
|000004a0| 13 69 66 20 63 48 6f 75 | 72 20 3e 3d 20 31 32 20 |.if cHou|r >= 12 |
|000004b0| 74 68 65 6e 09 63 48 6f | 75 72 20 3d 20 30 17 65 |then.cHo|ur = 0.e|
|000004c0| 6c 73 65 69 66 20 63 48 | 6f 75 72 20 3c 3d 20 2d |lseif cH|our <= -|
|000004d0| 31 20 74 68 65 6e 0a 63 | 48 6f 75 72 20 3d 20 31 |1 then.c|Hour = 1|
|000004e0| 31 06 65 6e 64 20 69 66 | 06 65 6e 64 20 69 66 06 |1.end if|.end if.|
|000004f0| 63 61 73 65 20 32 25 63 | 4d 69 6e 75 74 65 20 3d |case 2%c|Minute =|
|00000500| 20 28 63 4d 69 6e 75 74 | 65 20 2b 20 69 6e 63 72 | (cMinut|e + incr|
|00000510| 65 61 73 65 29 20 6d 6f | 64 20 36 30 13 69 66 20 |ease) mo|d 60.if |
|00000520| 63 4d 69 6e 75 74 65 20 | 3c 20 30 20 74 68 65 6e |cMinute |< 0 then|
|00000530| 0c 63 4d 69 6e 75 74 65 | 20 3d 20 35 39 06 65 6e |.cMinute| = 59.en|
|00000540| 64 20 69 66 06 63 61 73 | 65 20 33 25 63 53 65 63 |d if.cas|e 3%cSec|
|00000550| 6f 6e 64 20 3d 20 28 63 | 53 65 63 6f 6e 64 20 2b |ond = (c|Second +|
|00000560| 20 69 6e 63 72 65 61 73 | 65 29 20 6d 6f 64 20 36 | increas|e) mod 6|
|00000570| 30 13 69 66 20 63 53 65 | 63 6f 6e 64 20 3c 20 30 |0.if cSe|cond < 0|
|00000580| 20 74 68 65 6e 0c 63 53 | 65 63 6f 6e 64 20 3d 20 | then.cS|econd = |
|00000590| 35 39 06 65 6e 64 20 69 | 66 06 63 61 73 65 20 34 |59.end i|f.case 4|
|000005a0| 0f 69 73 50 4d 20 3d 20 | 6e 6f 74 20 69 73 50 4d |.isPM = |not isPM|
|000005b0| 0a 65 6e 64 20 73 65 6c | 65 63 74 06 65 6e 64 20 |.end sel|ect.end |
|000005c0| 69 66 00 12 69 66 20 63 | 48 6f 75 72 20 3c 20 31 |if..if c|Hour < 1|
|000005d0| 30 20 74 68 65 6e 15 68 | 68 20 3d 20 22 30 22 20 |0 then.h|h = "0" |
|000005e0| 2b 20 73 74 72 28 63 48 | 6f 75 72 29 04 65 6c 73 |+ str(cH|our).els|
|000005f0| 65 0f 68 68 20 3d 20 73 | 74 72 28 63 48 6f 75 72 |e.hh = s|tr(cHour|
|00000600| 29 06 65 6e 64 20 69 66 | 14 69 66 20 63 4d 69 6e |).end if|.if cMin|
|00000610| 75 74 65 20 3c 20 31 30 | 20 74 68 65 6e 17 6d 6d |ute < 10| then.mm|
|00000620| 20 3d 20 22 30 22 20 2b | 20 73 74 72 28 63 4d 69 | = "0" +| str(cMi|
|00000630| 6e 75 74 65 29 04 65 6c | 73 65 11 6d 6d 20 3d 20 |nute).el|se.mm = |
|00000640| 73 74 72 28 63 4d 69 6e | 75 74 65 29 06 65 6e 64 |str(cMin|ute).end|
|00000650| 20 69 66 14 69 66 20 63 | 53 65 63 6f 6e 64 20 3c | if.if c|Second <|
|00000660| 20 31 30 20 74 68 65 6e | 17 73 73 20 3d 20 22 30 | 10 then|.ss = "0|
|00000670| 22 20 2b 20 73 74 72 28 | 63 53 65 63 6f 6e 64 29 |" + str(|cSecond)|
|00000680| 04 65 6c 73 65 11 73 73 | 20 3d 20 73 74 72 28 63 |.else.ss| = str(c|
|00000690| 53 65 63 6f 6e 64 29 06 | 65 6e 64 20 69 66 0c 69 |Second).|end if.i|
|000006a0| 66 20 69 73 50 4d 20 74 | 68 65 6e 09 70 6d 20 3d |f isPM t|hen.pm =|
|000006b0| 20 22 50 4d 22 04 65 6c | 73 65 09 70 6d 20 3d 20 | "PM".el|se.pm = |
|000006c0| 22 41 4d 22 06 65 6e 64 | 20 69 66 00 0e 69 66 20 |"AM".end| if..if |
|000006d0| 73 68 6f 77 32 34 20 74 | 68 65 6e 25 74 69 6d 65 |show24 t|hen%time|
|000006e0| 53 74 72 69 6e 67 20 3d | 20 68 68 20 2b 20 22 3a |String =| hh + ":|
|000006f0| 22 20 2b 20 6d 6d 20 2b | 20 22 3a 22 20 2b 20 73 |" + mm +| ":" + s|
|00000700| 73 04 65 6c 73 65 30 74 | 69 6d 65 53 74 72 69 6e |s.else0t|imeStrin|
|00000710| 67 20 3d 20 68 68 20 2b | 20 22 3a 22 20 2b 20 6d |g = hh +| ":" + m|
|00000720| 6d 20 2b 20 22 3a 22 20 | 2b 20 73 73 20 2b 20 22 |m + ":" |+ ss + "|
|00000730| 20 22 20 2b 20 70 6d 06 | 65 6e 64 20 69 66 00 27 | " + pm.|end if.'|
|00000740| 74 69 6d 65 50 69 63 74 | 20 3d 20 6e 65 77 50 69 |timePict| = newPi|
|00000750| 63 74 75 72 65 28 74 68 | 65 57 69 64 74 68 2d 32 |cture(th|eWidth-2|
|00000760| 37 2c 31 32 2c 32 29 15 | 67 20 3d 20 74 69 6d 65 |7,12,2).|g = time|
|00000770| 50 69 63 74 2e 67 72 61 | 70 68 69 63 73 14 67 2e |Pict.gra|phics.g.|
|00000780| 74 65 78 74 46 6f 6e 74 | 20 3d 20 74 68 65 46 6f |textFont| = theFo|
|00000790| 6e 74 0f 67 2e 62 6f 6c | 64 20 3d 20 69 73 42 6f |nt.g.bol|d = isBo|
|000007a0| 6c 64 0f 67 2e 74 65 78 | 74 53 69 7a 65 20 3d 20 |ld.g.tex|tSize = |
|000007b0| 31 32 1c 67 2e 64 72 61 | 77 53 74 72 69 6e 67 20 |12.g.dra|wString |
|000007c0| 74 69 6d 65 53 74 72 69 | 6e 67 2c 30 2c 31 32 18 |timeStri|ng,0,12.|
|000007d0| 74 69 6d 65 50 69 63 74 | 2e 74 72 61 6e 73 70 61 |timePict|.transpa|
|000007e0| 72 65 6e 74 20 3d 20 31 | 00 24 70 2e 67 72 61 70 |rent = 1|.$p.grap|
|000007f0| 68 69 63 73 2e 64 72 61 | 77 50 69 63 74 75 72 65 |hics.dra|wPicture|
|00000800| 20 74 69 6d 65 50 69 63 | 74 2c 34 2c 34 20 00 1d | timePic|t,4,4 ..|
|00000810| 6d 65 2e 67 72 61 70 68 | 69 63 73 2e 64 72 61 77 |me.graph|ics.draw|
|00000820| 50 69 63 74 75 72 65 20 | 70 2c 30 2c 30 07 45 6e |Picture |p,0,0.En|
|00000830| 64 20 53 75 62 0c 63 72 | 65 61 74 65 41 72 72 6f |d Sub.cr|eateArro|
|00000840| 77 73 00 00 00 b0 01 00 | b0 01 00 b2 01 12 53 75 |ws......|......Su|
|00000850| 62 20 63 72 65 61 74 65 | 41 72 72 6f 77 73 28 29 |b create|Arrows()|
|00000860| 11 64 69 6d 20 67 20 61 | 73 20 67 72 61 70 68 69 |.dim g a|s graphi|
|00000870| 63 73 00 0a 2f 2f 55 70 | 20 2d 20 6f 66 66 21 61 |cs..//Up| - off!a|
|00000880| 72 72 6f 77 55 70 28 30 | 29 20 3d 20 6e 65 77 50 |rrowUp(0|) = newP|
|00000890| 69 63 74 75 72 65 28 31 | 33 2c 31 32 2c 31 36 29 |icture(1|3,12,16)|
|000008a0| 17 67 20 3d 20 61 72 72 | 6f 77 55 70 28 30 29 2e |.g = arr|owUp(0).|
|000008b0| 67 72 61 70 68 69 63 73 | 1e 67 2e 66 6f 72 65 43 |graphics|.g.foreC|
|000008c0| 6f 6c 6f 72 20 3d 20 72 | 67 62 28 32 32 31 2c 32 |olor = r|gb(221,2|
|000008d0| 32 31 2c 32 32 31 29 14 | 67 2e 66 69 6c 6c 52 65 |21,221).|g.fillRe|
|000008e0| 63 74 20 30 2c 30 2c 31 | 33 2c 31 32 20 67 2e 66 |ct 0,0,1|3,12 g.f|
|000008f0| 6f 72 65 43 6f 6c 6f 72 | 20 3d 20 72 67 62 28 30 |oreColor| = rgb(0|
|00000900| 2c 30 2c 30 29 20 2f 2f | 62 6c 61 63 6b 13 67 2e |,0,0) //|black.g.|
|00000910| 64 72 61 77 4c 69 6e 65 | 20 31 2c 30 2c 31 31 2c |drawLine| 1,0,11,|
|00000920| 30 13 67 2e 64 72 61 77 | 4c 69 6e 65 20 30 2c 31 |0.g.draw|Line 0,1|
|00000930| 2c 30 2c 31 31 15 67 2e | 64 72 61 77 4c 69 6e 65 |,0,11.g.|drawLine|
|00000940| 20 31 32 2c 31 2c 31 32 | 2c 31 31 15 67 2e 64 72 | 12,1,12|,11.g.dr|
|00000950| 61 77 4c 69 6e 65 20 31 | 2c 31 31 2c 31 31 2c 31 |awLine 1|,11,11,1|
|00000960| 31 28 67 2e 66 6f 72 65 | 43 6f 6c 6f 72 20 3d 20 |1(g.fore|Color = |
|00000970| 72 67 62 28 31 38 39 2c | 31 38 39 2c 31 38 39 29 |rgb(189,|189,189)|
|00000980| 20 2f 2f 64 61 72 6b 65 | 73 74 15 67 2e 64 72 61 | //darke|st.g.dra|
|00000990| 77 4c 69 6e 65 20 32 2c | 31 30 2c 31 31 2c 31 30 |wLine 2,|10,11,10|
|000009a0| 14 67 2e 64 72 61 77 4c | 69 6e 65 20 31 31 2c 39 |.g.drawL|ine 11,9|
|000009b0| 2c 31 31 2c 32 25 67 2e | 66 6f 72 65 43 6f 6c 6f |,11,2%g.|foreColo|
|000009c0| 72 20 3d 20 72 67 62 28 | 32 30 35 2c 32 30 35 2c |r = rgb(|205,205,|
|000009d0| 32 30 35 29 20 2f 2f 64 | 61 72 6b 13 67 2e 64 72 |205) //d|ark.g.dr|
|000009e0| 61 77 4c 69 6e 65 20 33 | 2c 39 2c 31 30 2c 39 14 |awLine 3|,9,10,9.|
|000009f0| 67 2e 64 72 61 77 4c 69 | 6e 65 20 31 30 2c 38 2c |g.drawLi|ne 10,8,|
|00000a00| 31 30 2c 33 26 67 2e 66 | 6f 72 65 43 6f 6c 6f 72 |10,3&g.f|oreColor|
|00000a10| 20 3d 20 72 67 62 28 32 | 33 37 2c 32 33 37 2c 32 | = rgb(2|37,237,2|
|00000a20| 33 37 29 20 2f 2f 6c 69 | 67 68 74 12 67 2e 64 72 |37) //li|ght.g.dr|
|00000a30| 61 77 4c 69 6e 65 20 32 | 2c 32 2c 32 2c 39 13 67 |awLine 2|,2,2,9.g|
|00000a40| 2e 64 72 61 77 4c 69 6e | 65 20 33 2c 32 2c 31 30 |.drawLin|e 3,2,10|
|00000a50| 2c 32 29 67 2e 66 6f 72 | 65 43 6f 6c 6f 72 20 3d |,2)g.for|eColor =|
|00000a60| 20 72 67 62 28 32 35 33 | 2c 32 35 33 2c 32 35 33 | rgb(253|,253,253|
|00000a70| 29 20 2f 2f 6c 69 67 68 | 74 65 73 74 13 67 2e 64 |) //ligh|test.g.d|
|00000a80| 72 61 77 4c 69 6e 65 20 | 31 2c 31 2c 31 2c 31 30 |rawLine |1,1,1,10|
|00000a90| 13 67 2e 64 72 61 77 4c | 69 6e 65 20 32 2c 31 2c |.g.drawL|ine 2,1,|
|00000aa0| 31 31 2c 31 20 67 2e 66 | 6f 72 65 43 6f 6c 6f 72 |11,1 g.f|oreColor|
|00000ab0| 20 3d 20 72 67 62 28 30 | 2c 30 2c 30 29 20 2f 2f | = rgb(0|,0,0) //|
|00000ac0| 61 72 72 6f 77 12 67 2e | 64 72 61 77 4c 69 6e 65 |arrow.g.|drawLine|
|00000ad0| 20 33 2c 37 2c 39 2c 37 | 12 67 2e 64 72 61 77 4c | 3,7,9,7|.g.drawL|
|00000ae0| 69 6e 65 20 34 2c 36 2c | 38 2c 36 12 67 2e 64 72 |ine 4,6,|8,6.g.dr|
|00000af0| 61 77 4c 69 6e 65 20 35 | 2c 35 2c 37 2c 35 19 67 |awLine 5|,5,7,5.g|
|00000b00| 2e 70 69 78 65 6c 28 36 | 2c 34 29 20 3d 20 72 67 |.pixel(6|,4) = rg|
|00000b10| 62 28 30 2c 30 2c 30 29 | 00 09 2f 2f 55 70 20 2d |b(0,0,0)|..//Up -|
|00000b20| 20 6f 6e 21 61 72 72 6f | 77 55 70 28 31 29 20 3d | on!arro|wUp(1) =|
|00000b30| 20 6e 65 77 50 69 63 74 | 75 72 65 28 31 33 2c 31 | newPict|ure(13,1|
|00000b40| 32 2c 31 36 29 17 67 20 | 3d 20 61 72 72 6f 77 55 |2,16).g |= arrowU|
|00000b50| 70 28 31 29 2e 67 72 61 | 70 68 69 63 73 1b 67 2e |p(1).gra|phics.g.|
|00000b60| 66 6f 72 65 43 6f 6c 6f | 72 20 3d 20 72 67 62 28 |foreColo|r = rgb(|
|00000b70| 39 36 2c 39 36 2c 39 36 | 29 14 67 2e 66 69 6c 6c |96,96,96|).g.fill|
|00000b80| 52 65 63 74 20 31 2c 31 | 2c 31 33 2c 31 32 20 67 |Rect 1,1|,13,12 g|
|00000b90| 2e 66 6f 72 65 43 6f 6c | 6f 72 20 3d 20 72 67 62 |.foreCol|or = rgb|
|00000ba0| 28 30 2c 30 2c 30 29 20 | 2f 2f 62 6c 61 63 6b 13 |(0,0,0) |//black.|
|00000bb0| 67 2e 64 72 61 77 4c 69 | 6e 65 20 31 2c 30 2c 31 |g.drawLi|ne 1,0,1|
|00000bc0| 31 2c 30 13 67 2e 64 72 | 61 77 4c 69 6e 65 20 30 |1,0.g.dr|awLine 0|
|00000bd0| 2c 31 2c 30 2c 31 31 15 | 67 2e 64 72 61 77 4c 69 |,1,0,11.|g.drawLi|
|00000be0| 6e 65 20 31 32 2c 31 2c | 31 32 2c 31 31 15 67 2e |ne 12,1,|12,11.g.|
|00000bf0| 64 72 61 77 4c 69 6e 65 | 20 31 2c 31 31 2c 31 31 |drawLine| 1,11,11|
|00000c00| 2c 31 31 28 67 2e 66 6f | 72 65 43 6f 6c 6f 72 20 |,11(g.fo|reColor |
|00000c10| 3d 20 72 67 62 28 31 32 | 38 2c 31 32 38 2c 31 32 |= rgb(12|8,128,12|
|00000c20| 38 29 20 2f 2f 64 61 72 | 6b 65 73 74 15 67 2e 64 |8) //dar|kest.g.d|
|00000c30| 72 61 77 4c 69 6e 65 20 | 32 2c 31 30 2c 31 31 2c |rawLine |2,10,11,|
|00000c40| 31 30 14 67 2e 64 72 61 | 77 4c 69 6e 65 20 31 31 |10.g.dra|wLine 11|
|00000c50| 2c 39 2c 31 31 2c 32 25 | 67 2e 66 6f 72 65 43 6f |,9,11,2%|g.foreCo|
|00000c60| 6c 6f 72 20 3d 20 72 67 | 62 28 31 31 32 2c 31 31 |lor = rg|b(112,11|
|00000c70| 32 2c 31 31 32 29 20 2f | 2f 64 61 72 6b 13 67 2e |2,112) /|/dark.g.|
|00000c80| 64 72 61 77 4c 69 6e 65 | 20 33 2c 39 2c 31 30 2c |drawLine| 3,9,10,|
|00000c90| 39 14 67 2e 64 72 61 77 | 4c 69 6e 65 20 31 30 2c |9.g.draw|Line 10,|
|00000ca0| 38 2c 31 30 2c 33 23 67 | 2e 66 6f 72 65 43 6f 6c |8,10,3#g|.foreCol|
|00000cb0| 6f 72 20 3d 20 72 67 62 | 28 38 30 2c 38 30 2c 38 |or = rgb|(80,80,8|
|00000cc0| 30 29 20 2f 2f 6c 69 67 | 68 74 12 67 2e 64 72 61 |0) //lig|ht.g.dra|
|00000cd0| 77 4c 69 6e 65 20 32 2c | 32 2c 32 2c 39 13 67 2e |wLine 2,|2,2,9.g.|
|00000ce0| 64 72 61 77 4c 69 6e 65 | 20 33 2c 32 2c 31 30 2c |drawLine| 3,2,10,|
|00000cf0| 32 26 67 2e 66 6f 72 65 | 43 6f 6c 6f 72 20 3d 20 |2&g.fore|Color = |
|00000d00| 72 67 62 28 36 34 2c 36 | 34 2c 36 34 29 20 2f 2f |rgb(64,6|4,64) //|
|00000d10| 6c 69 67 68 74 65 73 74 | 13 67 2e 64 72 61 77 4c |lightest|.g.drawL|
|00000d20| 69 6e 65 20 31 2c 31 2c | 31 2c 31 30 13 67 2e 64 |ine 1,1,|1,10.g.d|
|00000d30| 72 61 77 4c 69 6e 65 20 | 32 2c 31 2c 31 31 2c 31 |rawLine |2,1,11,1|
|00000d40| 26 67 2e 66 6f 72 65 43 | 6f 6c 6f 72 20 3d 20 72 |&g.foreC|olor = r|
|00000d50| 67 62 28 32 35 35 2c 32 | 35 35 2c 32 35 35 29 20 |gb(255,2|55,255) |
|00000d60| 2f 2f 61 72 72 6f 77 12 | 67 2e 64 72 61 77 4c 69 |//arrow.|g.drawLi|
|00000d70| 6e 65 20 33 2c 37 2c 39 | 2c 37 12 67 2e 64 72 61 |ne 3,7,9|,7.g.dra|
|00000d80| 77 4c 69 6e 65 20 34 2c | 36 2c 38 2c 36 12 67 2e |wLine 4,|6,8,6.g.|
|00000d90| 64 72 61 77 4c 69 6e 65 | 20 35 2c 35 2c 37 2c 35 |drawLine| 5,5,7,5|
|00000da0| 1f 67 2e 70 69 78 65 6c | 28 36 2c 34 29 20 3d 20 |.g.pixel|(6,4) = |
|00000db0| 72 67 62 28 32 35 35 2c | 32 35 35 2c 32 35 35 29 |rgb(255,|255,255)|
|00000dc0| 00 0c 2f 2f 44 6f 77 6e | 20 2d 20 6f 66 66 23 61 |..//Down| - off#a|
|00000dd0| 72 72 6f 77 44 6f 77 6e | 28 30 29 20 3d 20 6e 65 |rrowDown|(0) = ne|
|00000de0| 77 50 69 63 74 75 72 65 | 28 31 33 2c 31 31 2c 31 |wPicture|(13,11,1|
|00000df0| 36 29 19 67 20 3d 20 61 | 72 72 6f 77 44 6f 77 6e |6).g = a|rrowDown|
|00000e00| 28 30 29 2e 67 72 61 70 | 68 69 63 73 1e 67 2e 66 |(0).grap|hics.g.f|
|00000e10| 6f 72 65 43 6f 6c 6f 72 | 20 3d 20 72 67 62 28 32 |oreColor| = rgb(2|
|00000e20| 32 31 2c 32 32 31 2c 32 | 32 31 29 14 67 2e 66 69 |21,221,2|21).g.fi|
|00000e30| 6c 6c 52 65 63 74 20 30 | 2c 30 2c 31 33 2c 31 30 |llRect 0|,0,13,10|
|00000e40| 20 67 2e 66 6f 72 65 43 | 6f 6c 6f 72 20 3d 20 72 | g.foreC|olor = r|
|00000e50| 67 62 28 30 2c 30 2c 30 | 29 20 2f 2f 62 6c 61 63 |gb(0,0,0|) //blac|
|00000e60| 6b 12 67 2e 64 72 61 77 | 4c 69 6e 65 20 30 2c 30 |k.g.draw|Line 0,0|
|00000e70| 2c 30 2c 39 14 67 2e 64 | 72 61 77 4c 69 6e 65 20 |,0,9.g.d|rawLine |
|00000e80| 31 32 2c 30 2c 31 32 2c | 39 15 67 2e 64 72 61 77 |12,0,12,|9.g.draw|
|00000e90| 4c 69 6e 65 20 31 2c 31 | 30 2c 31 31 2c 31 30 28 |Line 1,1|0,11,10(|
|00000ea0| 67 2e 66 6f 72 65 43 6f | 6c 6f 72 20 3d 20 72 67 |g.foreCo|lor = rg|
|00000eb0| 62 28 31 38 39 2c 31 38 | 39 2c 31 38 39 29 20 2f |b(189,18|9,189) /|
|00000ec0| 2f 64 61 72 6b 65 73 74 | 13 67 2e 64 72 61 77 4c |/darkest|.g.drawL|
|00000ed0| 69 6e 65 20 32 2c 39 2c | 31 31 2c 39 14 67 2e 64 |ine 2,9,|11,9.g.d|
|00000ee0| 72 61 77 4c 69 6e 65 20 | 31 31 2c 38 2c 31 31 2c |rawLine |11,8,11,|
|00000ef0| 31 25 67 2e 66 6f 72 65 | 43 6f 6c 6f 72 20 3d 20 |1%g.fore|Color = |
|00000f00| 72 67 62 28 32 30 35 2c | 32 30 35 2c 32 30 35 29 |rgb(205,|205,205)|
|00000f10| 20 2f 2f 64 61 72 6b 13 | 67 2e 64 72 61 77 4c 69 | //dark.|g.drawLi|
|00000f20| 6e 65 20 33 2c 38 2c 31 | 30 2c 38 14 67 2e 64 72 |ne 3,8,1|0,8.g.dr|
|00000f30| 61 77 4c 69 6e 65 20 31 | 30 2c 37 2c 31 30 2c 32 |awLine 1|0,7,10,2|
|00000f40| 26 67 2e 66 6f 72 65 43 | 6f 6c 6f 72 20 3d 20 72 |&g.foreC|olor = r|
|00000f50| 67 62 28 32 33 37 2c 32 | 33 37 2c 32 33 37 29 20 |gb(237,2|37,237) |
|00000f60| 2f 2f 6c 69 67 68 74 12 | 67 2e 64 72 61 77 4c 69 |//light.|g.drawLi|
|00000f70| 6e 65 20 32 2c 31 2c 32 | 2c 38 13 67 2e 64 72 61 |ne 2,1,2|,8.g.dra|
|00000f80| 77 4c 69 6e 65 20 33 2c | 31 2c 31 30 2c 31 29 67 |wLine 3,|1,10,1)g|
|00000f90| 2e 66 6f 72 65 43 6f 6c | 6f 72 20 3d 20 72 67 62 |.foreCol|or = rgb|
|00000fa0| 28 32 35 33 2c 32 35 33 | 2c 32 35 33 29 20 2f 2f |(253,253|,253) //|
|00000fb0| 6c 69 67 68 74 65 73 74 | 12 67 2e 64 72 61 77 4c |lightest|.g.drawL|
|00000fc0| 69 6e 65 20 31 2c 30 2c | 31 2c 39 13 67 2e 64 72 |ine 1,0,|1,9.g.dr|
|00000fd0| 61 77 4c 69 6e 65 20 32 | 2c 30 2c 31 31 2c 30 20 |awLine 2|,0,11,0 |
|00000fe0| 67 2e 66 6f 72 65 43 6f | 6c 6f 72 20 3d 20 72 67 |g.foreCo|lor = rg|
|00000ff0| 62 28 30 2c 30 2c 30 29 | 20 2f 2f 61 72 72 6f 77 |b(0,0,0)| //arrow|
|00001000| 12 67 2e 64 72 61 77 4c | 69 6e 65 20 33 2c 33 2c |.g.drawL|ine 3,3,|
|00001010| 39 2c 33 12 67 2e 64 72 | 61 77 4c 69 6e 65 20 34 |9,3.g.dr|awLine 4|
|00001020| 2c 34 2c 38 2c 34 12 67 | 2e 64 72 61 77 4c 69 6e |,4,8,4.g|.drawLin|
|00001030| 65 20 35 2c 35 2c 37 2c | 35 19 67 2e 70 69 78 65 |e 5,5,7,|5.g.pixe|
|00001040| 6c 28 36 2c 36 29 20 3d | 20 72 67 62 28 30 2c 30 |l(6,6) =| rgb(0,0|
|00001050| 2c 30 29 00 0b 2f 2f 44 | 6f 77 6e 20 2d 20 6f 6e |,0)..//D|own - on|
|00001060| 23 61 72 72 6f 77 44 6f | 77 6e 28 31 29 20 3d 20 |#arrowDo|wn(1) = |
|00001070| 6e 65 77 50 69 63 74 75 | 72 65 28 31 33 2c 31 31 |newPictu|re(13,11|
|00001080| 2c 31 36 29 19 67 20 3d | 20 61 72 72 6f 77 44 6f |,16).g =| arrowDo|
|00001090| 77 6e 28 31 29 2e 67 72 | 61 70 68 69 63 73 1b 67 |wn(1).gr|aphics.g|
|000010a0| 2e 66 6f 72 65 43 6f 6c | 6f 72 20 3d 20 72 67 62 |.foreCol|or = rgb|
|000010b0| 28 39 36 2c 39 36 2c 39 | 36 29 14 67 2e 66 69 6c |(96,96,9|6).g.fil|
|000010c0| 6c 52 65 63 74 20 30 2c | 30 2c 31 33 2c 31 30 20 |lRect 0,|0,13,10 |
|000010d0| 67 2e 66 6f 72 65 43 6f | 6c 6f 72 20 3d 20 72 67 |g.foreCo|lor = rg|
|000010e0| 62 28 30 2c 30 2c 30 29 | 20 2f 2f 62 6c 61 63 6b |b(0,0,0)| //black|
|000010f0| 12 67 2e 64 72 61 77 4c | 69 6e 65 20 30 2c 30 2c |.g.drawL|ine 0,0,|
|00001100| 30 2c 39 14 67 2e 64 72 | 61 77 4c 69 6e 65 20 31 |0,9.g.dr|awLine 1|
|00001110| 32 2c 30 2c 31 32 2c 39 | 15 67 2e 64 72 61 77 4c |2,0,12,9|.g.drawL|
|00001120| 69 6e 65 20 31 2c 31 30 | 2c 31 31 2c 31 30 28 67 |ine 1,10|,11,10(g|
|00001130| 2e 66 6f 72 65 43 6f 6c | 6f 72 20 3d 20 72 67 62 |.foreCol|or = rgb|
|00001140| 28 31 32 38 2c 31 32 38 | 2c 31 32 38 29 20 2f 2f |(128,128|,128) //|
|00001150| 64 61 72 6b 65 73 74 13 | 67 2e 64 72 61 77 4c 69 |darkest.|g.drawLi|
|00001160| 6e 65 20 32 2c 39 2c 31 | 31 2c 39 14 67 2e 64 72 |ne 2,9,1|1,9.g.dr|
|00001170| 61 77 4c 69 6e 65 20 31 | 31 2c 38 2c 31 31 2c 31 |awLine 1|1,8,11,1|
|00001180| 25 67 2e 66 6f 72 65 43 | 6f 6c 6f 72 20 3d 20 72 |%g.foreC|olor = r|
|00001190| 67 62 28 31 31 32 2c 31 | 31 32 2c 31 31 32 29 20 |gb(112,1|12,112) |
|000011a0| 2f 2f 64 61 72 6b 13 67 | 2e 64 72 61 77 4c 69 6e |//dark.g|.drawLin|
|000011b0| 65 20 33 2c 38 2c 31 30 | 2c 38 14 67 2e 64 72 61 |e 3,8,10|,8.g.dra|
|000011c0| 77 4c 69 6e 65 20 31 30 | 2c 37 2c 31 30 2c 32 23 |wLine 10|,7,10,2#|
|000011d0| 67 2e 66 6f 72 65 43 6f | 6c 6f 72 20 3d 20 72 67 |g.foreCo|lor = rg|
|000011e0| 62 28 38 30 2c 38 30 2c | 38 30 29 20 2f 2f 6c 69 |b(80,80,|80) //li|
|000011f0| 67 68 74 12 67 2e 64 72 | 61 77 4c 69 6e 65 20 32 |ght.g.dr|awLine 2|
|00001200| 2c 31 2c 32 2c 38 13 67 | 2e 64 72 61 77 4c 69 6e |,1,2,8.g|.drawLin|
|00001210| 65 20 33 2c 31 2c 31 30 | 2c 31 26 67 2e 66 6f 72 |e 3,1,10|,1&g.for|
|00001220| 65 43 6f 6c 6f 72 20 3d | 20 72 67 62 28 36 34 2c |eColor =| rgb(64,|
|00001230| 36 34 2c 36 34 29 20 2f | 2f 6c 69 67 68 74 65 73 |64,64) /|/lightes|
|00001240| 74 12 67 2e 64 72 61 77 | 4c 69 6e 65 20 31 2c 30 |t.g.draw|Line 1,0|
|00001250| 2c 31 2c 39 13 67 2e 64 | 72 61 77 4c 69 6e 65 20 |,1,9.g.d|rawLine |
|00001260| 32 2c 30 2c 31 31 2c 30 | 26 67 2e 66 6f 72 65 43 |2,0,11,0|&g.foreC|
|00001270| 6f 6c 6f 72 20 3d 20 72 | 67 62 28 32 35 35 2c 32 |olor = r|gb(255,2|
|00001280| 35 35 2c 32 35 35 29 20 | 2f 2f 61 72 72 6f 77 12 |55,255) |//arrow.|
|00001290| 67 2e 64 72 61 77 4c 69 | 6e 65 20 33 2c 33 2c 39 |g.drawLi|ne 3,3,9|
|000012a0| 2c 33 12 67 2e 64 72 61 | 77 4c 69 6e 65 20 34 2c |,3.g.dra|wLine 4,|
|000012b0| 34 2c 38 2c 34 12 67 2e | 64 72 61 77 4c 69 6e 65 |4,8,4.g.|drawLine|
|000012c0| 20 35 2c 35 2c 37 2c 35 | 1f 67 2e 70 69 78 65 6c | 5,5,7,5|.g.pixel|
|000012d0| 28 36 2c 36 29 20 3d 20 | 72 67 62 28 32 35 35 2c |(6,6) = |rgb(255,|
|000012e0| 32 35 35 2c 32 35 35 29 | 00 07 45 6e 64 20 53 75 |255,255)|..End Su|
|000012f0| 62 0b 64 72 61 77 50 69 | 63 74 75 72 65 30 73 65 |b.drawPi|cture0se|
|00001300| 6c 4e 6f 20 61 73 20 69 | 6e 74 65 67 65 72 2c 75 |lNo as i|nteger,u|
|00001310| 70 20 61 73 20 62 6f 6f | 6c 65 61 6e 2c 63 68 61 |p as boo|lean,cha|
|00001320| 6e 67 65 20 61 73 20 62 | 6f 6f 6c 65 61 6e 00 00 |nge as b|oolean..|
|00001330| 0f 32 0f 32 15 81 01 53 | 75 62 20 64 72 61 77 50 |.2.2...S|ub drawP|
|00001340| 69 63 74 75 72 65 28 73 | 65 6c 4e 6f 20 61 73 20 |icture(s|elNo as |
|00001350| 69 6e 74 65 67 65 72 2c | 75 70 20 61 73 20 62 6f |integer,|up as bo|
|00001360| 6f 6c 65 61 6e 2c 63 68 | 61 6e 67 65 20 61 73 20 |olean,ch|ange as |
|00001370| 62 6f 6f 6c 65 61 6e 29 | 11 64 69 6d 20 67 20 61 |boolean)|.dim g a|
|00001380| 73 20 67 72 61 70 68 69 | 63 73 00 1e 70 20 3d 20 |s graphi|cs..p = |
|00001390| 6e 65 77 50 69 63 74 75 | 72 65 28 74 68 65 57 69 |newPictu|re(theWi|
|000013a0| 64 74 68 2c 32 33 2c 31 | 36 29 0e 67 20 3d 20 70 |dth,23,1|6).g = p|
|000013b0| 2e 67 72 61 70 68 69 63 | 73 1e 67 2e 66 6f 72 65 |.graphic|s.g.fore|
|000013c0| 43 6f 6c 6f 72 20 3d 20 | 72 67 62 28 32 35 35 2c |Color = |rgb(255,|
|000013d0| 32 35 35 2c 32 35 35 29 | 1d 67 2e 66 69 6c 6c 52 |255,255)|.g.fillR|
|000013e0| 65 63 74 20 30 2c 30 2c | 74 68 65 57 69 64 74 68 |ect 0,0,|theWidth|
|000013f0| 2d 31 33 2c 32 33 18 67 | 2e 66 6f 72 65 43 6f 6c |-13,23.g|.foreCol|
|00001400| 6f 72 20 3d 20 72 67 62 | 28 30 2c 30 2c 30 29 1c |or = rgb|(0,0,0).|
|00001410| 67 2e 64 72 61 77 52 65 | 63 74 20 31 2c 31 2c 74 |g.drawRe|ct 1,1,t|
|00001420| 68 65 57 69 64 74 68 2d | 32 2c 32 30 1c 67 2e 66 |heWidth-|2,20.g.f|
|00001430| 6f 72 65 43 6f 6c 6f 72 | 20 3d 20 64 61 72 6b 54 |oreColor| = darkT|
|00001440| 69 6e 67 65 43 6f 6c 6f | 72 1c 67 2e 64 72 61 77 |ingeColo|r.g.draw|
|00001450| 4c 69 6e 65 20 30 2c 30 | 2c 74 68 65 57 69 64 74 |Line 0,0|,theWidt|
|00001460| 68 2d 31 33 2c 30 13 67 | 2e 64 72 61 77 4c 69 6e |h-13,0.g|.drawLin|
|00001470| 65 20 30 2c 30 2c 30 2c | 32 32 1d 67 2e 66 6f 72 |e 0,0,0,|22.g.for|
|00001480| 65 43 6f 6c 6f 72 20 3d | 20 6c 69 67 68 74 54 69 |eColor =| lightTi|
|00001490| 6e 67 65 43 6f 6c 6f 72 | 1e 67 2e 64 72 61 77 4c |ngeColor|.g.drawL|
|000014a0| 69 6e 65 20 31 2c 32 32 | 2c 74 68 65 57 69 64 74 |ine 1,22|,theWidt|
|000014b0| 68 2d 31 33 2c 32 32 2d | 67 2e 64 72 61 77 50 69 |h-13,22-|g.drawPi|
|000014c0| 63 74 75 72 65 20 61 72 | 72 6f 77 55 70 28 75 70 |cture ar|rowUp(up|
|000014d0| 53 74 61 74 75 73 29 2c | 74 68 65 57 69 64 74 68 |Status),|theWidth|
|000014e0| 2d 31 33 2c 30 32 67 2e | 64 72 61 77 50 69 63 74 |-13,02g.|drawPict|
|000014f0| 75 72 65 20 61 72 72 6f | 77 44 6f 77 6e 28 64 6f |ure arro|wDown(do|
|00001500| 77 6e 53 74 61 74 75 73 | 29 2c 74 68 65 57 69 64 |wnStatus|),theWid|
|00001510| 74 68 2d 31 33 2c 31 32 | 00 16 63 68 61 6e 67 65 |th-13,12|..change|
|00001520| 53 65 6c 65 63 74 69 6f | 6e 28 73 65 6c 4e 6f 29 |Selectio|n(selNo)|
|00001530| 15 63 68 61 6e 67 65 54 | 69 6d 65 28 75 70 2c 63 |.changeT|ime(up,c|
|00001540| 68 61 6e 67 65 29 00 07 | 45 6e 64 20 53 75 62 0f |hange)..|End Sub.|
|00001550| 63 68 61 6e 67 65 53 65 | 6c 65 63 74 69 6f 6e 10 |changeSe|lection.|
|00001560| 73 65 6c 4e 6f 20 61 73 | 20 69 6e 74 65 67 65 72 |selNo as| integer|
|00001570| 00 00 04 33 04 33 1e 25 | 53 75 62 20 63 68 61 6e |...3.3.%|Sub chan|
|00001580| 67 65 53 65 6c 65 63 74 | 69 6f 6e 28 73 65 6c 4e |geSelect|ion(selN|
|00001590| 6f 20 61 73 20 69 6e 74 | 65 67 65 72 29 1d 64 69 |o as int|eger).di|
|000015a0| 6d 20 66 6f 63 75 73 53 | 65 6c 65 63 74 69 6f 6e |m focusS|election|
|000015b0| 20 61 73 20 70 69 63 74 | 75 72 65 10 64 69 6d 20 | as pict|ure.dim |
|000015c0| 78 20 61 73 20 69 6e 74 | 65 67 65 72 00 33 66 6f |x as int|eger.3fo|
|000015d0| 63 75 73 53 65 6c 65 63 | 74 69 6f 6e 20 3d 20 6e |cusSelec|tion = n|
|000015e0| 65 77 50 69 63 74 75 72 | 65 28 77 54 69 6d 65 28 |ewPictur|e(wTime(|
|000015f0| 30 29 2d 77 54 69 6d 65 | 28 32 29 2c 31 35 2c 38 |0)-wTime|(2),15,8|
|00001600| 29 32 66 6f 63 75 73 53 | 65 6c 65 63 74 69 6f 6e |)2focusS|election|
|00001610| 2e 67 72 61 70 68 69 63 | 73 2e 66 6f 72 65 43 6f |.graphic|s.foreCo|
|00001620| 6c 6f 72 20 3d 20 68 69 | 67 68 6c 69 67 68 74 43 |lor = hi|ghlightC|
|00001630| 6f 6c 6f 72 39 66 6f 63 | 75 73 53 65 6c 65 63 74 |olor9foc|usSelect|
|00001640| 69 6f 6e 2e 67 72 61 70 | 68 69 63 73 2e 66 69 6c |ion.grap|hics.fil|
|00001650| 6c 52 65 63 74 20 30 2c | 30 2c 77 54 69 6d 65 28 |lRect 0,|0,wTime(|
|00001660| 30 29 2d 77 54 69 6d 65 | 28 32 29 2c 31 35 00 11 |0)-wTime|(2),15..|
|00001670| 73 65 6c 65 63 74 20 63 | 61 73 65 20 73 65 6c 4e |select c|ase selN|
|00001680| 6f 06 63 61 73 65 20 30 | 0e 2f 2f 6e 6f 20 73 65 |o.case 0|.//no se|
|00001690| 6c 65 63 74 69 6f 6e 06 | 63 61 73 65 20 31 05 78 |lection.|case 1.x|
|000016a0| 20 3d 20 35 06 63 61 73 | 65 20 32 10 78 20 3d 20 | = 5.cas|e 2.x = |
|000016b0| 35 20 2b 20 77 54 69 6d | 65 28 30 29 06 63 61 73 |5 + wTim|e(0).cas|
|000016c0| 65 20 33 16 78 20 3d 20 | 35 20 2b 20 28 32 20 2a |e 3.x = |5 + (2 *|
|000016d0| 20 77 54 69 6d 65 28 30 | 29 29 06 63 61 73 65 20 | wTime(0|)).case |
|000016e0| 34 21 78 20 3d 20 35 20 | 2b 20 28 32 20 2a 20 77 |4!x = 5 |+ (2 * w|
|000016f0| 54 69 6d 65 28 30 29 29 | 20 2b 20 77 54 69 6d 65 |Time(0))| + wTime|
|00001700| 28 31 29 14 66 6f 63 75 | 73 53 65 6c 65 63 74 69 |(1).focu|sSelecti|
|00001710| 6f 6e 20 3d 20 6e 69 6c | 27 66 6f 63 75 73 53 65 |on = nil|'focusSe|
|00001720| 6c 65 63 74 69 6f 6e 20 | 3d 20 6e 65 77 50 69 63 |lection |= newPic|
|00001730| 74 75 72 65 28 77 50 4d | 2d 31 2c 31 35 2c 38 29 |ture(wPM|-1,15,8)|
|00001740| 32 66 6f 63 75 73 53 65 | 6c 65 63 74 69 6f 6e 2e |2focusSe|lection.|
|00001750| 67 72 61 70 68 69 63 73 | 2e 66 6f 72 65 43 6f 6c |graphics|.foreCol|
|00001760| 6f 72 20 3d 20 68 69 67 | 68 6c 69 67 68 74 43 6f |or = hig|hlightCo|
|00001770| 6c 6f 72 2d 66 6f 63 75 | 73 53 65 6c 65 63 74 69 |lor-focu|sSelecti|
|00001780| 6f 6e 2e 67 72 61 70 68 | 69 63 73 2e 66 69 6c 6c |on.graph|ics.fill|
|00001790| 52 65 63 74 20 30 2c 30 | 2c 77 50 4d 2d 31 2c 31 |Rect 0,0|,wPM-1,1|
|000017a0| 35 0a 65 6e 64 20 73 65 | 6c 65 63 74 00 0d 69 66 |5.end se|lect..if|
|000017b0| 20 78 20 3e 20 30 20 74 | 68 65 6e 29 70 2e 67 72 | x > 0 t|hen)p.gr|
|000017c0| 61 70 68 69 63 73 2e 64 | 72 61 77 50 69 63 74 75 |aphics.d|rawPictu|
|000017d0| 72 65 20 66 6f 63 75 73 | 53 65 6c 65 63 74 69 6f |re focus|Selectio|
|000017e0| 6e 2c 78 2c 34 06 65 6e | 64 20 69 66 00 07 45 6e |n,x,4.en|d if..En|
|000017f0| 64 20 53 75 62 12 61 62 | 6f 75 74 53 65 74 54 69 |d Sub.ab|outSetTi|
|00001800| 6d 65 43 61 6e 76 61 73 | 00 00 00 15 00 1a 00 22 |meCanvas|......."|
|00001810| 18 53 75 62 20 61 62 6f | 75 74 53 65 74 54 69 6d |.Sub abo|utSetTim|
|00001820| 65 43 61 6e 76 61 73 28 | 29 14 27 73 65 74 54 69 |eCanvas(|).'setTi|
|00001830| 6d 65 43 61 6e 76 61 73 | 20 31 2e 31 2e 32 13 27 |meCanvas| 1.1.2.'|
|00001840| 53 65 70 74 65 6d 62 65 | 72 20 31 39 2c 20 31 39 |Septembe|r 19, 19|
|00001850| 39 39 17 27 a9 31 39 39 | 39 20 4d 69 63 68 61 65 |99.'.199|9 Michae|
|00001860| 6c 20 52 6f 73 61 6e 64 | 65 72 01 27 36 27 73 65 |l Rosand|er.'6'se|
|00001870| 74 54 69 6d 65 43 61 6e | 76 61 73 20 69 73 20 66 |tTimeCan|vas is f|
|00001880| 72 65 65 20 74 6f 20 75 | 73 65 20 69 6e 20 61 6e |ree to u|se in an|
|00001890| 79 20 6f 66 20 79 6f 75 | 72 20 70 72 6f 6a 65 63 |y of you|r projec|
|000018a0| 74 73 2e 8a 01 27 54 68 | 65 20 6f 6e 6c 79 20 74 |ts...'Th|e only t|
|000018b0| 68 69 6e 67 20 49 20 61 | 73 6b 20 69 73 20 74 68 |hing I a|sk is th|
|000018c0| 61 74 20 79 6f 75 20 67 | 69 76 65 20 63 72 65 64 |at you g|ive cred|
|000018d0| 69 74 20 74 6f 20 6d 65 | 20 69 6e 20 79 6f 75 72 |it to me| in your|
|000018e0| 20 61 70 70 73 20 61 62 | 6f 75 74 20 62 6f 78 20 | apps ab|out box |
|000018f0| 27 6f 72 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |'or docu|mentatio|
|00001900| 6e 20 69 66 20 79 6f 75 | 20 75 73 65 20 69 74 2e |n if you| use it.|
|00001910| 01 27 94 01 27 49 6e 20 | 74 68 65 20 6e 65 77 20 |.'..'In |the new |
|00001920| 65 76 65 6e 74 20 22 73 | 65 74 43 6c 6f 63 6b 22 |event "s|etClock"|
|00001930| 20 79 6f 75 20 63 61 6e | 20 73 65 74 20 74 68 65 | you can| set the|
|00001940| 20 69 6e 69 74 69 61 6c | 20 63 6f 6e 64 69 74 69 | initial| conditi|
|00001950| 6f 6e 73 20 66 6f 72 20 | 74 68 65 20 63 6f 6e 74 |ons for |the cont|
|00001960| 72 6f 6c 2c 20 65 67 2e | 36 27 6d 65 2e 73 68 6f |rol, eg.|6'me.sho|
|00001970| 77 32 34 20 61 73 20 62 | 6f 6f 6c 65 61 6e 20 20 |w24 as b|oolean |
|00001980| 74 72 75 65 3a 20 32 34 | 20 68 6f 75 72 73 2c 20 |true: 24| hours, |
|00001990| 66 61 6c 73 65 3a 20 31 | 32 20 68 6f 75 72 73 9c |false: 1|2 hours.|
|000019a0| 01 27 6d 65 2e 73 68 6f | 77 31 32 20 61 73 20 62 |.'me.sho|w12 as b|
|000019b0| 6f 6f 6c 65 61 6e 20 20 | 74 72 75 65 3a 20 31 32 |oolean |true: 12|
|000019c0| 20 28 6f 72 20 32 34 29 | 20 77 69 6c 6c 20 62 65 | (or 24)| will be|
|000019d0| 20 73 68 6f 77 6e 2c 20 | 66 61 6c 73 65 3a 20 6a | shown, |false: j|
|000019e0| 75 6d 70 73 20 66 72 6f | 6d 20 31 31 20 74 6f 20 |umps fro|m 11 to |
|000019f0| 30 30 20 28 32 33 20 74 | 6f 20 30 30 29 01 27 3d |00 (23 t|o 00).'=|
|00001a00| 27 6d 65 2e 63 48 6f 75 | 72 20 61 73 20 69 6e 74 |'me.cHou|r as int|
|00001a10| 65 67 65 72 20 20 20 20 | 20 20 73 65 74 20 69 6e |eger | set in|
|00001a20| 69 74 69 61 6c 20 68 6f | 75 72 20 20 20 20 20 20 |itial ho|ur |
|00001a30| 28 6f 72 20 67 65 74 20 | 68 6f 75 72 29 3d 27 6d |(or get |hour)='m|
|00001a40| 65 2e 63 4d 69 6e 75 74 | 65 20 61 73 20 69 6e 74 |e.cMinut|e as int|
|00001a50| 65 67 65 72 20 20 20 73 | 65 74 20 69 6e 69 74 69 |eger s|et initi|
|00001a60| 61 6c 20 6d 69 6e 75 74 | 65 20 20 20 28 6f 72 20 |al minut|e (or |
|00001a70| 67 65 74 20 6d 69 6e 75 | 74 65 29 3c 27 6d 65 2e |get minu|te)<'me.|
|00001a80| 63 53 65 63 6f 6e 64 20 | 61 73 20 69 6e 74 65 67 |cSecond |as integ|
|00001a90| 65 72 20 20 20 73 65 74 | 20 69 6e 69 74 69 61 6c |er set| initial|
|00001aa0| 20 73 65 63 6f 6e 64 73 | 20 28 6f 72 20 67 65 74 | seconds| (or get|
|00001ab0| 20 73 65 63 6f 6e 64 29 | 3f 27 6d 65 2e 69 73 50 | second)|?'me.isP|
|00001ac0| 4d 20 61 73 20 62 6f 6f | 6c 65 61 6e 20 20 20 20 |M as boo|lean |
|00001ad0| 20 20 20 28 69 66 20 73 | 68 6f 77 32 34 3d 66 61 | (if s|how24=fa|
|00001ae0| 6c 73 65 29 20 74 72 75 | 65 3a 20 50 4d 2c 20 66 |lse) tru|e: PM, f|
|00001af0| 61 6c 73 65 3a 20 41 4d | 01 27 3b 27 6d 65 2e 74 |alse: AM|.';'me.t|
|00001b00| 68 65 46 6f 6e 74 20 61 | 73 20 73 74 72 69 6e 67 |heFont a|s string|
|00001b10| 20 20 20 20 20 73 65 74 | 20 74 68 65 20 74 65 78 | set| the tex|
|00001b20| 74 20 66 6f 6e 74 2c 20 | 65 67 2e 20 22 43 68 61 |t font, |eg. "Cha|
|00001b30| 72 63 6f 61 6c 22 80 01 | 27 6d 65 2e 69 73 42 6f |rcoal"..|'me.isBo|
|00001b40| 6c 64 20 61 73 20 62 6f | 6f 6c 65 61 6e 20 20 20 |ld as bo|olean |
|00001b50| 20 20 73 65 74 20 74 6f | 20 74 72 75 65 20 69 66 | set to| true if|
|00001b60| 20 74 68 65 20 66 6f 6e | 74 20 73 68 6f 75 6c 64 | the fon|t should|
|00001b70| 20 62 65 20 62 6f 6c 64 | 01 27 1c 27 76 31 2e 31 | be bold|.'.'v1.1|
|00001b80| 2e 32 20 28 53 65 70 74 | 65 6d 62 65 72 20 31 39 |.2 (Sept|ember 19|
|00001b90| 2c 20 31 39 39 39 29 94 | 01 27 2d 20 6e 6f 20 63 |, 1999).|.'- no c|
|00001ba0| 68 61 6e 67 65 73 20 74 | 6f 20 74 68 65 20 63 6c |hanges t|o the cl|
|00001bb0| 61 73 73 2c 20 62 75 74 | 20 61 64 64 65 64 20 63 |ass, but| added c|
|00001bc0| 6f 64 65 20 74 68 61 74 | 20 73 68 6f 77 20 68 6f |ode that| show ho|
|00001bd0| 77 20 74 6f 20 75 73 65 | 20 61 72 72 6f 77 20 6b |w to use| arrow k|
|00001be0| 65 79 73 20 74 6f 20 63 | 68 61 6e 67 65 38 27 20 |eys to c|hange8' |
|00001bf0| 20 73 65 6c 65 63 74 69 | 6f 6e 20 61 6e 64 20 69 | selecti|on and i|
|00001c00| 6e 63 72 65 61 73 65 2f | 64 65 63 72 65 61 73 65 |ncrease/|decrease|
|00001c10| 20 28 61 73 20 73 75 67 | 67 65 73 74 65 64 20 62 | (as sug|gested b|
|00001c20| 79 20 48 49 47 29 1c 27 | 76 31 2e 31 2e 31 20 28 |y HIG).'|v1.1.1 (|
|00001c30| 53 65 70 74 65 6d 62 65 | 72 20 31 35 2c 20 31 39 |Septembe|r 15, 19|
|00001c40| 39 39 29 38 27 2d 20 61 | 20 6d 69 6e 6f 72 20 62 |99)8'- a| minor b|
|00001c50| 75 67 20 77 69 74 68 20 | 63 68 61 6e 67 69 6e 67 |ug with |changing|
|00001c60| 20 66 72 6f 6d 20 73 68 | 6f 77 20 22 31 32 22 20 | from sh|ow "12" |
|00001c70| 74 6f 20 73 68 6f 77 20 | 22 30 30 22 1a 27 76 31 |to show |"00".'v1|
|00001c80| 2e 31 20 28 53 65 70 74 | 65 6d 62 65 72 20 31 34 |.1 (Sept|ember 14|
|00001c90| 2c 20 31 39 39 39 29 a1 | 01 27 2d 20 59 6f 75 20 |, 1999).|.'- You |
|00001ca0| 63 61 6e 20 6e 6f 77 20 | 75 73 65 20 61 6e 79 20 |can now |use any |
|00001cb0| 66 6f 6e 74 20 61 6e 64 | 20 74 68 65 20 73 69 7a |font and| the siz|
|00001cc0| 65 20 6f 66 20 74 68 65 | 20 63 6f 6e 74 72 6f 6c |e of the| control|
|00001cd0| 20 28 61 6e 64 20 73 65 | 6c 65 63 74 69 6f 6e 20 | (and se|lection |
|00001ce0| 61 72 65 61 73 29 20 77 | 69 6c 6c 20 61 64 6a 75 |areas) w|ill adju|
|00001cf0| 73 74 20 69 74 73 65 6c | 66 20 1f 27 2d 20 79 6f |st itsel|f .'- yo|
|00001d00| 75 20 63 61 6e 20 73 65 | 74 20 74 68 65 20 66 6f |u can se|t the fo|
|00001d10| 6e 74 20 74 6f 20 62 6f | 6c 64 90 01 27 2d 20 5b |nt to bo|ld..'- [|
|00001d20| 42 55 47 20 66 69 78 5d | 3a 20 74 68 65 20 74 72 |BUG fix]|: the tr|
|00001d30| 61 6e 73 69 74 69 6f 6e | 20 69 73 20 6e 6f 77 20 |ansition| is now |
|00001d40| 63 6f 72 72 65 63 74 20 | 66 72 6f 6d 20 31 31 20 |correct |from 11 |
|00001d50| 2d 3e 20 30 30 20 6f 72 | 20 31 32 20 28 32 33 20 |-> 00 or| 12 (23 |
|00001d60| 2d 3e 20 30 30 20 6f 72 | 20 32 34 29 1b 27 5f 5f |-> 00 or| 24).'__|
|00001d70| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00001d80| 5f 5f 5f 5f 5f 5f 5f 5f | 19 27 6d 69 63 68 61 65 |________|.'michae|
|00001d90| 6c 2e 72 6f 73 61 6e 64 | 65 72 40 68 6f 6d 65 2e |l.rosand|er@home.|
|00001da0| 73 65 21 27 68 74 74 70 | 3a 2f 2f 77 77 77 2e 6c |se!'http|://www.l|
|00001db0| 69 75 2e 73 65 2f 69 70 | 70 2f 72 62 2f 72 62 2e |iu.se/ip|p/rb/rb.|
|00001dc0| 68 74 6d 6c 07 45 6e 64 | 20 53 75 62 07 73 65 74 |html.End| Sub.set|
|00001dd0| 53 69 7a 65 00 00 00 11 | 1d 11 1d 16 0d 53 75 62 |Size....|.....Sub|
|00001de0| 20 73 65 74 53 69 7a 65 | 28 29 17 64 69 6d 20 74 | setSize|().dim t|
|00001df0| 65 73 74 50 69 63 74 20 | 61 73 20 70 69 63 74 75 |estPict |as pictu|
|00001e00| 72 65 11 64 69 6d 20 67 | 20 61 73 20 67 72 61 70 |re.dim g| as grap|
|00001e10| 68 69 63 73 10 64 69 6d | 20 77 20 61 73 20 69 6e |hics.dim| w as in|
|00001e20| 74 65 67 65 72 00 1c 74 | 65 73 74 50 69 63 74 20 |teger..t|estPict |
|00001e30| 3d 20 6e 65 77 50 69 63 | 74 75 72 65 28 31 2c 31 |= newPic|ture(1,1|
|00001e40| 2c 32 29 15 67 20 3d 20 | 74 65 73 74 50 69 63 74 |,2).g = |testPict|
|00001e50| 2e 67 72 61 70 68 69 63 | 73 00 14 67 2e 74 65 78 |.graphic|s..g.tex|
|00001e60| 74 46 6f 6e 74 20 3d 20 | 74 68 65 46 6f 6e 74 0f |tFont = |theFont.|
|00001e70| 67 2e 74 65 78 74 53 69 | 7a 65 20 3d 20 31 32 0f |g.textSi|ze = 12.|
|00001e80| 67 2e 62 6f 6c 64 20 3d | 20 69 73 42 6f 6c 64 20 |g.bold =| isBold |
|00001e90| 77 20 3d 20 67 2e 73 74 | 72 69 6e 67 57 69 64 74 |w = g.st|ringWidt|
|00001ea0| 68 28 22 30 30 3a 30 30 | 3a 30 30 20 41 4d 22 29 |h("00:00|:00 AM")|
|00001eb0| 00 1a 74 68 65 57 69 64 | 74 68 20 3d 20 34 20 2b |..theWid|th = 4 +|
|00001ec0| 20 77 20 2b 20 31 30 20 | 2b 20 31 33 00 1f 77 54 | w + 10 |+ 13..wT|
|00001ed0| 69 6d 65 28 30 29 20 3d | 20 67 2e 73 74 72 69 6e |ime(0) =| g.strin|
|00001ee0| 67 57 69 64 74 68 28 22 | 30 30 3a 22 29 1f 77 54 |gWidth("|00:").wT|
|00001ef0| 69 6d 65 28 31 29 20 3d | 20 67 2e 73 74 72 69 6e |ime(1) =| g.strin|
|00001f00| 67 57 69 64 74 68 28 22 | 30 30 20 22 29 1d 77 54 |gWidth("|00 ").wT|
|00001f10| 69 6d 65 28 32 29 20 3d | 20 67 2e 73 74 72 69 6e |ime(2) =| g.strin|
|00001f20| 67 57 69 64 74 68 28 22 | 3a 22 29 19 77 50 4d 20 |gWidth("|:").wPM |
|00001f30| 3d 20 67 2e 73 74 72 69 | 6e 67 57 69 64 74 68 28 |= g.stri|ngWidth(|
|00001f40| 22 41 4d 22 29 00 13 6d | 65 2e 77 69 64 74 68 20 |"AM")..m|e.width |
|00001f50| 3d 20 74 68 65 57 69 64 | 74 68 07 45 6e 64 20 53 |= theWid|th.End S|
|00001f60| 75 62 01 08 53 65 74 43 | 6c 6f 63 6b 00 00 05 09 |ub..SetC|lock....|
|00001f70| 4d 6f 75 73 65 44 72 61 | 67 03 92 01 03 92 01 0b |MouseDra|g.......|
|00001f80| 29 53 75 62 20 4d 6f 75 | 73 65 44 72 61 67 28 58 |)Sub Mou|seDrag(X|
|00001f90| 20 41 73 20 49 6e 74 65 | 67 65 72 2c 20 59 20 41 | As Inte|ger, Y A|
|00001fa0| 73 20 49 6e 74 65 67 65 | 72 29 19 77 61 69 74 46 |s Intege|r).waitF|
|00001fb0| 6f 72 49 74 20 3d 20 77 | 61 69 74 46 6f 72 49 74 |orIt = w|aitForIt|
|00001fc0| 20 2b 20 31 00 92 01 69 | 66 20 77 61 69 74 46 6f | + 1...i|f waitFo|
|00001fd0| 72 49 74 20 3e 20 35 30 | 20 74 68 65 6e 20 20 2f |rIt > 50| then /|
|00001fe0| 2f 63 68 61 6e 67 65 20 | 35 30 20 74 6f 20 77 68 |/change |50 to wh|
|00001ff0| 61 74 65 76 65 72 20 79 | 6f 75 20 6c 69 6b 65 20 |atever y|ou like |
|00002000| 74 6f 20 67 65 74 20 74 | 68 65 20 64 65 6c 61 79 |to get t|he delay|
|00002010| 20 72 69 67 68 74 2e 2e | 2e 14 69 66 20 75 70 53 | right..|..if upS|
|00002020| 74 61 74 75 73 20 3d 20 | 31 20 74 68 65 6e 20 64 |tatus = |1 then d|
|00002030| 72 61 77 50 69 63 74 75 | 72 65 28 73 65 6c 65 63 |rawPictu|re(selec|
|00002040| 74 69 6f 6e 2c 74 72 75 | 65 2c 74 72 75 65 29 1a |tion,tru|e,true).|
|00002050| 65 6c 73 65 69 66 20 64 | 6f 77 6e 53 74 61 74 75 |elseif d|ownStatu|
|00002060| 73 20 3d 20 31 20 74 68 | 65 6e 21 64 72 61 77 50 |s = 1 th|en!drawP|
|00002070| 69 63 74 75 72 65 28 73 | 65 6c 65 63 74 69 6f 6e |icture(s|election|
|00002080| 2c 66 61 6c 73 65 2c 74 | 72 75 65 29 06 65 6e 64 |,false,t|rue).end|
|00002090| 20 69 66 06 65 6e 64 20 | 69 66 07 45 6e 64 20 53 | if.end |if.End S|
|000020a0| 75 62 05 50 61 69 6e 74 | 01 13 01 13 03 18 53 75 |ub.Paint|......Su|
|000020b0| 62 20 50 61 69 6e 74 28 | 67 20 41 73 20 47 72 61 |b Paint(|g As Gra|
|000020c0| 70 68 69 63 73 29 13 67 | 2e 64 72 61 77 50 69 63 |phics).g|.drawPic|
|000020d0| 74 75 72 65 20 70 2c 30 | 2c 30 07 45 6e 64 20 53 |ture p,0|,0.End S|
|000020e0| 75 62 09 4d 6f 75 73 65 | 44 6f 77 6e 04 0e 04 00 |ub.Mouse|Down....|
|000020f0| 2c 39 46 75 6e 63 74 69 | 6f 6e 20 4d 6f 75 73 65 |,9Functi|on Mouse|
|00002100| 44 6f 77 6e 28 58 20 41 | 73 20 49 6e 74 65 67 65 |Down(X A|s Intege|
|00002110| 72 2c 20 59 20 41 73 20 | 49 6e 74 65 67 65 72 29 |r, Y As |Integer)|
|00002120| 20 41 73 20 42 6f 6f 6c | 65 61 6e 12 64 69 6d 20 | As Bool|ean.dim |
|00002130| 73 65 6c 20 61 73 20 69 | 6e 74 65 67 65 72 00 0d |sel as i|nteger..|
|00002140| 77 61 69 74 46 6f 72 49 | 74 20 3d 20 30 12 6d 6f |waitForI|t = 0.mo|
|00002150| 75 73 65 49 73 44 6f 77 | 6e 20 3d 20 74 72 75 65 |useIsDow|n = true|
|00002160| 17 69 66 20 78 20 3c 20 | 74 68 65 57 69 64 74 68 |.if x < |theWidth|
|00002170| 2d 31 33 20 74 68 65 6e | 18 69 66 20 78 20 3c 20 |-13 then|.if x < |
|00002180| 35 20 2b 20 77 54 69 6d | 65 28 30 29 20 74 68 65 |5 + wTim|e(0) the|
|00002190| 6e 06 2f 2f 68 6f 75 72 | 07 73 65 6c 20 3d 20 31 |n.//hour|.sel = 1|
|000021a0| 22 65 6c 73 65 69 66 20 | 78 20 3c 20 35 20 2b 20 |"elseif |x < 5 + |
|000021b0| 28 32 20 2a 20 77 54 69 | 6d 65 28 30 29 29 20 74 |(2 * wTi|me(0)) t|
|000021c0| 68 65 6e 08 2f 2f 6d 69 | 6e 75 74 65 07 73 65 6c |hen.//mi|nute.sel|
|000021d0| 20 3d 20 32 23 65 6c 73 | 65 69 66 20 78 20 3c 20 | = 2#els|eif x < |
|000021e0| 20 35 20 2b 20 28 33 20 | 2a 20 77 54 69 6d 65 28 | 5 + (3 |* wTime(|
|000021f0| 30 29 29 20 74 68 65 6e | 08 2f 2f 73 65 63 6f 6e |0)) then|.//secon|
|00002200| 64 07 73 65 6c 20 3d 20 | 33 83 01 65 6c 73 65 69 |d.sel = |3..elsei|
|00002210| 66 20 78 20 3c 20 20 35 | 20 2b 20 28 32 20 2a 20 |f x < 5| + (2 * |
|00002220| 77 54 69 6d 65 28 30 29 | 29 20 2b 20 77 54 69 6d |wTime(0)|) + wTim|
|00002230| 65 28 31 29 20 2b 20 77 | 50 4d 20 61 6e 64 20 6e |e(1) + w|PM and n|
|00002240| 6f 74 20 73 68 6f 77 32 | 34 20 74 68 65 6e 07 2f |ot show2|4 then./|
|00002250| 2f 41 4d 2f 50 4d 07 73 | 65 6c 20 3d 20 34 06 65 |/AM/PM.s|el = 4.e|
|00002260| 6e 64 20 69 66 00 18 69 | 66 20 73 65 6c 65 63 74 |nd if..i|f select|
|00002270| 69 6f 6e 20 3c 3e 20 73 | 65 6c 20 74 68 65 6e 1c |ion <> s|el then.|
|00002280| 64 72 61 77 50 69 63 74 | 75 72 65 28 73 65 6c 2c |drawPict|ure(sel,|
|00002290| 66 61 6c 73 65 2c 66 61 | 6c 73 65 29 0f 73 65 6c |false,fa|lse).sel|
|000022a0| 65 63 74 69 6f 6e 20 3d | 20 73 65 6c 0b 72 65 74 |ection =| sel.ret|
|000022b0| 75 72 6e 20 74 72 75 65 | 06 65 6e 64 20 69 66 06 |urn true|.end if.|
|000022c0| 65 6e 64 20 69 66 00 97 | 01 69 66 20 73 65 6c 65 |end if..|.if sele|
|000022d0| 63 74 69 6f 6e 20 3c 3e | 20 30 20 61 6e 64 20 73 |ction <>| 0 and s|
|000022e0| 65 6c 20 3d 20 30 20 74 | 68 65 6e 20 2f 2f 69 66 |el = 0 t|hen //if|
|000022f0| 20 68 6f 75 72 2c 20 6d | 69 6e 75 74 65 2c 20 73 | hour, m|inute, s|
|00002300| 65 63 6f 6e 64 20 6f 72 | 20 41 4d 2f 50 4d 20 68 |econd or| AM/PM h|
|00002310| 61 73 20 62 65 65 6e 20 | 73 65 6c 65 63 74 65 64 |as been |selected|
|00002320| 22 69 66 20 78 20 3e 20 | 74 68 65 57 69 64 74 68 |"if x > |theWidth|
|00002330| 2d 31 33 20 61 6e 64 20 | 79 20 3c 20 31 33 20 74 |-13 and |y < 13 t|
|00002340| 68 65 6e 04 2f 2f 75 70 | 0c 75 70 53 74 61 74 75 |hen.//up|.upStatu|
|00002350| 73 20 3d 20 31 0e 64 6f | 77 6e 53 74 61 74 75 73 |s = 1.do|wnStatus|
|00002360| 20 3d 20 30 20 64 72 61 | 77 50 69 63 74 75 72 65 | = 0 dra|wPicture|
|00002370| 28 73 65 6c 65 63 74 69 | 6f 6e 2c 74 72 75 65 2c |(selecti|on,true,|
|00002380| 74 72 75 65 29 26 65 6c | 73 65 69 66 20 78 20 3e |true)&el|seif x >|
|00002390| 20 74 68 65 57 69 64 74 | 68 2d 31 33 20 61 6e 64 | theWidt|h-13 and|
|000023a0| 20 79 20 3e 20 31 33 20 | 74 68 65 6e 06 2f 2f 64 | y > 13 |then.//d|
|000023b0| 6f 77 6e 0c 75 70 53 74 | 61 74 75 73 20 3d 20 30 |own.upSt|atus = 0|
|000023c0| 0e 64 6f 77 6e 53 74 61 | 74 75 73 20 3d 20 31 21 |.downSta|tus = 1!|
|000023d0| 64 72 61 77 50 69 63 74 | 75 72 65 28 73 65 6c 65 |drawPict|ure(sele|
|000023e0| 63 74 69 6f 6e 2c 66 61 | 6c 73 65 2c 74 72 75 65 |ction,fa|lse,true|
|000023f0| 29 06 65 6e 64 20 69 66 | 0b 72 65 74 75 72 6e 20 |).end if|.return |
|00002400| 74 72 75 65 06 65 6e 64 | 20 69 66 00 00 0c 45 6e |true.end| if...En|
|00002410| 64 20 46 75 6e 63 74 69 | 6f 6e 07 4d 6f 75 73 65 |d Functi|on.Mouse|
|00002420| 55 70 06 00 06 0b 08 27 | 53 75 62 20 4d 6f 75 73 |Up.....'|Sub Mous|
|00002430| 65 55 70 28 58 20 41 73 | 20 49 6e 74 65 67 65 72 |eUp(X As| Integer|
|00002440| 2c 20 59 20 41 73 20 49 | 6e 74 65 67 65 72 29 0c |, Y As I|nteger).|
|00002450| 75 70 53 74 61 74 75 73 | 20 3d 20 30 0e 64 6f 77 |upStatus| = 0.dow|
|00002460| 6e 53 74 61 74 75 73 20 | 3d 20 30 00 22 64 72 61 |nStatus |= 0."dra|
|00002470| 77 50 69 63 74 75 72 65 | 28 73 65 6c 65 63 74 69 |wPicture|(selecti|
|00002480| 6f 6e 2c 66 61 6c 73 65 | 2c 66 61 6c 73 65 29 00 |on,false|,false).|
|00002490| 13 6d 6f 75 73 65 49 73 | 44 6f 77 6e 20 3d 20 66 |.mouseIs|Down = f|
|000024a0| 61 6c 73 65 07 45 6e 64 | 20 53 75 62 04 4f 70 65 |alse.End| Sub.Ope|
|000024b0| 6e 07 07 07 07 0a 0a 53 | 75 62 20 4f 70 65 6e 28 |n......S|ub Open(|
|000024c0| 29 0c 63 72 65 61 74 65 | 41 72 72 6f 77 73 1e 74 |).create|Arrows.t|
|000024d0| 68 65 46 6f 6e 74 20 3d | 20 22 63 68 61 72 63 6f |heFont =| "charco|
|000024e0| 61 6c 22 20 2f 2f 64 65 | 66 61 75 6c 74 0e 6d 65 |al" //de|fault.me|
|000024f0| 2e 68 65 69 67 68 74 20 | 3d 20 32 33 00 14 73 65 |.height |= 23..se|
|00002500| 74 43 6c 6f 63 6b 20 2f | 2f 6e 65 77 20 65 76 65 |tClock /|/new eve|
|00002510| 6e 74 00 07 73 65 74 53 | 69 7a 65 1a 64 72 61 77 |nt..setS|ize.draw|
|00002520| 50 69 63 74 75 72 65 28 | 30 2c 66 61 6c 73 65 2c |Picture(|0,false,|
|00002530| 66 61 6c 73 65 29 07 45 | 6e 64 20 53 75 62 00 00 |false).E|nd Sub..|
|00002540| 00 | |. | |
+--------+-------------------------+-------------------------+--------+--------+